.class Lcom/nemustech/regina/widgets/clock/ClockWidget$38;
.super Landroid/content/BroadcastReceiver;
.source "ClockWidget.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/widgets/clock/ClockWidget;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter

    .prologue
    .line 2521
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 12
    .parameter "context"
    .parameter "intent"

    .prologue
    const/4 v9, -0x1

    const/4 v8, 0x1

    const/4 v11, 0x0

    const/4 v10, 0x0

    .line 2523
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v6

    const-string v7, "android.intent.action.TIME_TICK"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->isPaused()Z

    move-result v6

    if-nez v6, :cond_2

    .line 2524
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7008(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I

    .line 2525
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "ACTION_TIME_TICK!! - mHour : mMinute = "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " : "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I

    move-result v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2526
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I

    move-result v6

    const/16 v7, 0x3c

    if-ne v6, v7, :cond_0

    .line 2527
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7002(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I

    .line 2528
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7108(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I

    .line 2529
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I

    move-result v6

    const/16 v7, 0x18

    if-ne v6, v7, :cond_0

    .line 2530
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7102(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I

    .line 2531
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCurrentDate()V

    .line 2532
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    .line 2535
    :cond_0
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    check-cast v6, Landroid/app/Activity;

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/Runnable;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 2634
    :cond_1
    :goto_0
    return-void

    .line 2536
    :cond_2
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v6

    const-string v7, "com.nemustech.regina.weatherserver.WEATHERDATA_PULL"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 2537
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    if-eqz v6, :cond_1

    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_1

    .line 2538
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->sendRequest(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 2540
    :cond_3
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v6

    const-string v7, "com.nemustech.regina.weatherserver.WEATHERDATA_CHANGED"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_6

    .line 2541
    const-string v6, "cityCode"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 2542
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z

    move-result v6

    if-eqz v6, :cond_4

    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$902(Lcom/nemustech/regina/widgets/clock/ClockWidget;Z)Z

    .line 2543
    :cond_4
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 2544
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$6900(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)V

    .line 2545
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "update!!"

    invoke-static {v6, v7, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto :goto_0

    .line 2547
    :cond_5
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    .line 2548
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "pending - update!!"

    invoke-static {v6, v7, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 2552
    :cond_6
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v6

    const-string v7, "com.nemustech.regina.weatherserver.WEATHERDATA_EXIST"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_8

    .line 2553
    const-string v6, "cityCode"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 2554
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z

    move-result v6

    if-eqz v6, :cond_7

    .line 2555
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$6900(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)V

    .line 2556
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "update!!"

    invoke-static {v6, v7, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 2558
    :cond_7
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    .line 2559
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "pending - update!!"

    invoke-static {v6, v7, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0

    .line 2562
    :cond_8
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v6

    const-string v7, "com.nemustech.regina.apps.weather.CITY_CHANGED"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_b

    .line 2563
    const-string v6, "widgetId"

    const-wide/16 v7, -0x1

    invoke-virtual {p2, v6, v7, v8}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J

    move-result-wide v6

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v8

    cmp-long v6, v6, v8

    if-nez v6, :cond_1

    .line 2564
    const-string v6, "cityCode"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_1

    const-string v6, "cityCode"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, ""

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_1

    .line 2565
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    check-cast v6, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncher;->startWeatherService()Z

    move-result v6

    if-eqz v6, :cond_1

    .line 2567
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    invoke-static {v6}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v6

    const v7, 0x7f070027

    invoke-virtual {v6, v7}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 2569
    .local v5, loadingText:Ljava/lang/String;
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v5}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1002(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;

    .line 2570
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v6

    invoke-virtual {v6, v10, v11, v11}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 2572
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    if-eqz v6, :cond_9

    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_9

    .line 2573
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->sendRequestRemove(Landroid/content/Context;Ljava/lang/String;)V

    .line 2576
    :cond_9
    const-string v6, "cityName"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 2577
    .local v1, cityName:Ljava/lang/String;
    const-string v6, "cityCode"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2578
    .local v0, cityCode:Ljava/lang/String;
    const-string v6, "gmtValue"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 2580
    .local v4, gmt:Ljava/lang/String;
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "received from weatherApp - name : "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, ", code : "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, ", gmt : "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2582
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$702(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;

    .line 2583
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7502(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;

    .line 2584
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v4}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7602(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;

    .line 2585
    if-eqz v0, :cond_a

    if-eqz v1, :cond_a

    if-eqz v4, :cond_a

    .line 2586
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v1, v0, v4}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7700(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 2589
    :cond_a
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    invoke-static {v6, v0}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->sendRequest(Landroid/content/Context;Ljava/lang/String;)V

    .line 2590
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCurrentDate()V

    .line 2591
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    check-cast v6, Landroid/app/Activity;

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/Runnable;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto/16 :goto_0

    .line 2595
    .end local v0           #cityCode:Ljava/lang/String;
    .end local v1           #cityName:Ljava/lang/String;
    .end local v4           #gmt:Ljava/lang/String;
    .end local v5           #loadingText:Ljava/lang/String;
    :cond_b
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v6

    const-string v7, "com.nemustech.regina.weatherserver.WEATHERDATA_ERROR"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_e

    .line 2597
    const-string v6, "cityCode"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2598
    .restart local v0       #cityCode:Ljava/lang/String;
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 2599
    const-string v6, "errorMsg"

    invoke-virtual {p2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 2600
    .local v2, errorMsg:Ljava/lang/String;
    const-string v6, "Invalid Region Code"

    invoke-virtual {v2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_c

    .line 2601
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    invoke-static {v6}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v6

    const v7, 0x7f07002d

    invoke-virtual {v6, v7}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 2602
    .local v3, errorText:Ljava/lang/String;
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    invoke-static {v6, v3, v8}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;I)Landroid/widget/Toast;

    .line 2604
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v11}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1002(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;

    .line 2605
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v6

    invoke-virtual {v6, v10, v11, v11}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 2606
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v11}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7602(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;

    .line 2607
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v9}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$2902(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I

    .line 2608
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v6

    invoke-virtual {v6, v10}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 2609
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    check-cast v6, Landroid/app/Activity;

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/Runnable;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 2610
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    goto/16 :goto_0

    .line 2611
    .end local v3           #errorText:Ljava/lang/String;
    :cond_c
    const-string v6, "Network is unavailable"

    invoke-virtual {v2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_d

    .line 2612
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    invoke-static {v6}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v6

    const v7, 0x7f07002b

    invoke-virtual {v6, v7}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 2613
    .restart local v3       #errorText:Ljava/lang/String;
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    invoke-static {v6, v3, v8}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;I)Landroid/widget/Toast;

    .line 2614
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v11}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1002(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;

    .line 2615
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$1100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v6

    invoke-virtual {v6, v10, v11, v11}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 2616
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v9}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$2902(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I

    .line 2617
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v6

    invoke-virtual {v6, v10}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 2618
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7902(Lcom/nemustech/regina/widgets/clock/ClockWidget;Z)Z

    .line 2619
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    .line 2620
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    check-cast v6, Landroid/app/Activity;

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/Runnable;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto/16 :goto_0

    .line 2621
    .end local v3           #errorText:Ljava/lang/String;
    :cond_d
    const-string v6, "Failed to get weather data"

    invoke-virtual {v2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    goto/16 :goto_0

    .line 2625
    .end local v0           #cityCode:Ljava/lang/String;
    .end local v2           #errorMsg:Ljava/lang/String;
    :cond_e
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v6

    const-string v7, "android.net.conn.CONNECTIVITY_CHANGE"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 2626
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z

    move-result v6

    if-eqz v6, :cond_f

    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z

    move-result v6

    if-eqz v6, :cond_f

    .line 2627
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$7902(Lcom/nemustech/regina/widgets/clock/ClockWidget;Z)Z

    .line 2628
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;

    move-result-object v6

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->sendRequest(Landroid/content/Context;Ljava/lang/String;)V

    .line 2630
    :cond_f
    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;->this$0:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-static {v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->access$4100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "connectivity changed!!!"

    invoke-static {v6, v7, v10}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto/16 :goto_0
.end method
